package com.hg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hg.pojo.Content;
import com.hg.pojo.ContentCategory;
import com.hg.util.PageResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Baomidou
 * @since 2025-07-31
 */
public interface IContentService extends IService<Content> {

    List<ContentCategory> selectContentCategoryByParentId(Long id);

    void insertContentCategory(Long parentId, String name);

    void deleteContentCategoryById(Long categoryId);

    void updateContentCategory(Long id, String name);

    PageResult selectTbContentAllByCategoryId(Long categoryId, Integer page, Integer rows);

    void insertTbContent(Content content);

    void deleteContentByIds(Long ids);
}
